'use strict';

module.exports = app => {
  const { STRING, DATE, UUID } = app.Sequelize;

  const ProSexual = app.model.define('pro_sexual', {
    uid: { type: UUID, primaryKey: true },//唯一标识
    user_id: STRING(50),//用户id
    way: STRING(50),//方式
    status: STRING(50),//方式
    create_time: DATE,//创建时间
  }, {
    //防止查询在表名后加s
    freezeTableName: true,
    //是否自动创建create_at
    timestamps: false
  });

  return ProSexual;
};